package rapier.sso.server.model;

import rapier.sso.core.entity.TDbSysUserEntity;

/**
 * 对登录页面提交的内容集中存储，并提供特定获取方法的一个实体类
 *
 */
public class Credential {
	private String error; // 错误信息
	
	private TDbSysUserEntity userEntity;

	/**
	 * 授权失败时，设置失败提示信息
	 * 
	 * @param errorMsg
	 */
	public void setError(String errorMsg) {
		this.error = errorMsg;
	}

	/**
	 * 获取失败提示信息
	 * 
	 * @return
	 */
	public String getError() {
		return this.error;
	}

	public TDbSysUserEntity getUserEntity() {
		return userEntity;
	}

	public void setUserEntity(TDbSysUserEntity userEntity) {
		this.userEntity = userEntity;
	}

}
